<?php $user = $this->session->userdata('user');  ?>
<style type="text/css">
.fr-topnav {
    float: right;
    width: 53.5%;
}
.fr-topnav > li {
    border-right: solid 1px #ccc;
}
.fr-topnav > li:last-child { 
    border-right: none;
}
.fr-middleNav {
    float: right;
    margin-top: -40px;
    text-align: right;
    width: 100%;
}
.no-border {
    border: none;
}
.nav-ilb > li {
    display: inline-block;
    border-right: solid 1px #ccc;
}
.nav-ilb > li:last-child {
    border-right: none;
}
.nav-ilb > li > a {
    padding: 4px 15px;
}
.box-search {
    margin: -10px 16px;
}
.box-search > input[type="text"]{
    width: 275px;   
}
#pd {
    padding-bottom: 4px;
    padding-right: 20px;
    padding-top: 4px;
}
.mr {
    margin-right: 15px;
}
</style>
<div class="container">
    <div class="row">
        <ul class="fr-topnav">
            <li class="col-md-3"><a class="noneline">Giao Hàng <span class="light">Miễn Phí</span></a></li>
            <li class="col-md-5"><a>Ưu Đãi Hấp Dẫn <span class="light">Cho Khách Hàng Thân Thiết</span></a></li>
            <li class="col-md-4"><a><span class="light"> Thanh Toán Trước </span> Khi Nhận Hàng *</a></li> 
        </ul>
    </div>
    <div class="row">
        <a class="brand" title="MYPRINTS.VN"><img src="<?php echo IMAGES_PATH;?>logo.png" alt="MYPRINTS.VN" /></a>
        <div class="fr-middleNav">
            <ul class="nav nav-ilb">
                <?php if($user) echo '<li><div class="col-md mr"><label>Chào</label>&nbsp;&nbsp;<a>'.$user['fullname'].'</a> - <a href="users/logout">Thoát</a></div></li>';                 
                else  echo '<li><a href="users/register">Đăng Kí</a></li><li><a href="users">Đăng Nhập</a></li>'; ?>
                <li><a>Kiểm Tra Giỏ Hàng</a></li>
                <li class="li-cart"><a>Giỏ Hàng <span class="sp-counter">0</span></a>
                    <ul class="small-cart"></ul>
                </li>
                <li><a title="Ngôn Ngữ">Ngôn Ngữ &nbsp;&nbsp;<img src="<?php echo IMAGES_PATH; ?>vi.png" /></a></li>
                <li>
                    <form>
                        <div class="input-group input-group-sm box-search">
                          <span class="input-group-addon">
                            <button type="submit" value="" class="no-border"><span class="glyphicon glyphicon-search"></span></button>
                          </span>
                          <input type="text" class="form-control" placeholder="Tìm kiếm sản phẩm..." />
                        </div>
                    </form>
                </li>
            </ul><br />
            <ul class="nav nav-ilb text-right">
                <li id="pd">Hotline: 0909198440</li>
                <li><a>Email & Chat</a>
                <li><a>Hướng Dẫn</a></li>  
            </ul>
        </div>
    </div>
</div>
